<%--
  User: Shengzhao Li
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html>
<html>
<head>
    <title>结算历史 - Cooking Account</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/cooking-main.css"/>
</head>
<body>
<div class="page">
    <div id="header_menu">
        <a class="offline-button" href="../overview" id="record">首页</a>
        <a class="offline-button" href="real_time" id="settlement">实时信息</a>
    </div>
    <div>
        已结算的历史总金额为<strong>${overviewDto.totalAmount}</strong>元; 共结算<strong>${overviewDto.fullListSize}</strong>次,
        <strong>${overviewDto.totalAccountSize}</strong>条明细信息.
    </div>
    <div id="grid_container">
        <display:table name="${overviewDto}" cellpadding="0" cellspacing="0" id="ck" requestURI="history"
                       class="default-table">
            <display:column property="createTime" title="结算日期" headerClass="default-table-header" style="width:30%;"/>
            <display:column property="totalAmount" title="结算总金额" headerClass="default-table-header" style="width:30%;"/>
            <display:column property="averageAmount" title="人均金额" headerClass="default-table-header"
                            style="width:30%;"/>
            <display:column title="操作" headerClass="default-table-header">
                <a href="details/${ck.guid}?back=true">明细</a>
            </display:column>
        </display:table>
    </div>
    <div>
        <a href="form">返回</a>
    </div>
</div>
</body>
</html>